import Vue from "vue"
import Router from "vue-router"

Vue.use(Router)
export default new Router({
  mode: "hash",
  routes: [
    {
      path: '/',
      name: 'home-page',
      component: () => import('@/views/Home.vue'),
      meta: {
        title: '首页'
      }
    },
    {
      path: '/login',
      name: 'login-page',
      component: () => import('@/views/login/index.vue'),
      meta: {
        title: '登录'
      }
    },
    {
      path: '/policy',
      name: 'policy',
      component: () => import('@/views/policy/index.vue'),
      meta: {
        title: '政策咨询'
      }
    },
    {
      path: '/policy-list',
      name: 'policy-list',
      component: () => import('@/views/policy/policyList.vue'),
      meta: {
        title: '政策列表'
      }
    },
    {
      path: '/policy-detail',
      name: 'policy-detail',
      component: () => import('@/views/policy/policyDetail.vue'),
      meta: {
        title: '政策详情'
      }
    },
    {
      path: '/news-list',
      name: 'news',
      component: () => import('@/views/news/index.vue'),
      meta: {
        title: '新闻列表'
      }
    },
    {
      path: '/employ',
      name: 'employ',
      component: () => import('@/views/employ/index.vue'),
      meta: {
        title: '求职登记'
      }
    },
    {
      path: '/position-query',
      name: 'position-query',
      component: () => import('@/views/position-query/index.vue'),
      meta: {
        title: '岗位查询'
      }
    },
    {
      path: '/position-query-lg',
      name: 'position-query-lg',
      component: () => import('@/views/position-query/lg.vue'),
      meta: {
        keepAlive:true,
        title: '零工岗位查询'
      }
    },
    {
      path: '/position-query-qz',
      name: 'position-query-qz',
      component: () => import('@/views/position-query/qz.vue'),
      meta: {
        keepAlive:true,
        title: '全职岗位查询'
      }
    },

    {
      path: '/qa-robot',
      name: 'qa-robot',
      component: () => import('@/views/qa-robot/index.vue'),
      meta: {
        title: '智能问答'
      }
    },
    {
      path: '/labor-rights',
      name: 'labor-rights',
      component: () => import('@/views/labor-rights/index.vue'),
      meta: {
        title: '劳动维权'
      }
    },
    {
      path: '/hot-line',
      name: 'hotLine',
      component: () => import('@/views/labor-rights/hot-line.vue'),
      meta: {
        title: '咨询热线'
      }
    },
    {
      path: '/law-list',
      name: 'law-list',
      component: () => import('@/views/labor-rights/law-list.vue'),
      meta: {
        title: '法律法规'
      }
    },
    {
      path: '/law-detail',
      name: 'law-detail',
      component: () => import('@/views/labor-rights/law-detail.vue'),
      meta: {
        title: '法律法规详情'
      }
    },
    {
      path: '/case-list',
      name: 'case-list',
      component: () => import('@/views/labor-rights/case-list.vue'),
      meta: {
        title: '案例检索'
      }
    },
    {
      path: '/case-detail',
      name: 'case-detail',
      component: () => import('@/views/labor-rights/case-detail.vue'),
      meta: {
        title: '案例详情'
      }
    },
    {
      path: '/skills-training',
      name: 'skills-training',
      component: () => import('@/views/skills-training/index.vue'),
      meta: {
        title: '技能培训'
      }
    },
    {
      path: '/course-list',
      name: 'course-list',
      component: () => import('@/views/skills-training/course-list.vue'),
      meta: {
        title: '培训课程'
      }
    },
    {
      path: '/school-list',
      name: 'school-list',
      component: () => import('@/views/skills-training/school-list.vue'),
      meta: {
        title: '培训学校'
      }
    },
    {
      path: '/course-detail',
      name: 'course-detail',
      component: () => import('@/views/skills-training/course-detail.vue'),
      meta: {
        title: '培训课程详情'
      }
    },
    {
      path: '/school-detail',
      name: 'school-detail',
      component: () => import('@/views/skills-training/school-detail.vue'),
      meta: {
        title: '培训学校详情'
      }
    },
    {
      path: '/person-center',
      name: 'person-center',
      component: () => import('@/views/person-center/index.vue'),
      meta: {
        title: '个人中心'
      }
    },
    {
      path: '/person-info',
      name: 'person-info',
      component: () => import('@/views/person-center/person-info.vue'),
      meta: {
        title: '个人信息'
      }
    },
    {
      path: '/temp-order-center',
      name: 'temp-order-center',
      component: () => import('@/views/person-center/temp-order-center.vue'),
      meta: {
        keepAlive:true,
        title: '零工订单中心'
      }
    },
    {
      path: "/temp-order-info",
      name: "temp-order-info",
      component: () => import("@/views/person-center/temp-order-info.vue"),
      meta: {
        title: "零工订单详情"
      }
    },
    {
      path: '/full-order-center',
      name: 'full-order-center',
      component: () => import('@/views/person-center/full-order-center.vue'),
      meta: {
        keepAlive:true,
        title: '全职订单中心'
      }
    },
    {
      path: "/full-order-info",
      name: "ull-order-info",
      component: () => import("@/views/person-center/full-order-info.vue"),
      meta: {
        title: "全职订单详情"
      }
    },
    {
      path: '/position-detail-lg',
      name: 'position-query-detail',
      component: () => import('@/views/position-query/detail.vue'),
      meta: {
        keepAlive:false,
        title: '岗位详情'
      }
    },
    {
      path: '/position-detail-qz',
      name: 'position-query-qz-detail',
      component: () => import('@/views/position-query/qz-detail.vue'),
      meta: {
        keepAlive:false,
        title: '全职岗位详情'
      }
    },
    {
      path: '/salary-detail',
      name: 'salary-detail',
      component: () => import('@/views/labor-rights/salary-detail.vue'),
      meta: {
        keepAlive:false,
        title: '工资指导价'
      }
    },
    {
      path: "/window-direct",
      name: "windowDirect",
      component: () => import("@/views/window-direct/index.vue"),
      meta: {
        title: "窗口直达"
      }
    },
    {
      path: "/equity-maintain",
      name: "equityMaintain",
      component: () => import("@/views/equity-maintain/index.vue"),
      meta: {
        title: "权益维护"
      }
    },
    {
      path: "/devtest",
      name: "devTest",
      component: () => import("@/views/devtest/index.vue"),
      meta: {
        title: "设备测试"
      }
    },
    {
      path: '/person-real-name',
      name: 'person-real-name',
      component: () => import('@/views/person-center/person-real-name.vue'),
      meta: {
        keepAlive:true,
        title: '个人实名认证'
      }
    }

  ]
})
